<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>备注信息</title>
    <link rel="stylesheet" href="/Public/admin/css/gxxj/public_O.css">
    <link rel="stylesheet" href="/Public/admin/css/gxxj/knomledge.css">
    <style type="text/css">
        html {
            background: #fff;
            height: 100%;
        }
    </style>
</head>
<body style="padding:10px;">


    <div class="main">
        <form method="post" onsubmit="return false">
            <textarea class="input_bg_color" name="info" id="info" cols="70" rows="9" placeholder="请输入备注信息" style="width: 90%"></textarea>
            <!--<input class="bg_color_red color_white question_btn" type="button" onclick="w_close()" value="关闭" style="font-size: small; float: left;padding-left: 10px;padding-right: 10px">-->
            <input  style="font-size: small; float: left;background-color: #6254B2" class="bg_color_red color_white question_btn" type="button" onclick="add_mark()" value="确认">
        </form>
    </div>


    <script src="/Public/js/jquery.min.js?v=2.1.4"></script>
    <script src="/Public/js/bootstrap.min.js?v=3.3.6"></script>
    <script src="/Public/js/content.js?v=1.0.0"></script>
<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>
<script>


    function add_mark() {
        var index = layer.load(1, {
            shade: [0.1, '#fff'] //0.1透明度的白色背景
        });

        var info=$("#info").val();
        if (info== "") {
            layer.close(index);
            layer.alert("请信息填写完整！\r\n", {
                title: '提示框',
                icon: 0,
            });
            return false;
        }
        var page_first="<{$page_first}>";
        var type1="<{$url_type}>";
        var page="<{$page}>";
        var url_type_status="<{$url_type_status}>";

       var vid="<{$vid}>";
        var url= "<{$SRVER_NAME}>/admin.php/InOutbound/outbound_result";
        var to_url= "<{$SRVER_NAME}>/admin.php/InOutbound/FK_UserList?page_first="+page_first+"&page="+page+"&type="+type1+"&url_type_status="+url_type_status;
        $.post(url, {vid: vid, content: info,type1:type1}, function (data) {

            if (data.code == "1001") {
                layer.alert(data.result, {title: '提示框', icon: 1}, function () {
                    var index1 = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index1);
//                    window.location.href = to_url;
                    parent.location.reload(to_url);

                });
            }
            else {
                layer.alert(data.result, {title: '提示框', icon: 2});

            }
        });
        layer.close(index);
    }



</script>


</body>
</html>